package wms2010.gui.forms.disciplines;

import java.awt.BorderLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

import wms2010.gui.forms.SimpleForm;

public abstract class AbstractDisciplineForm extends SimpleForm {
	protected JTextField nameOfDiscipline = new JTextField();
	protected JTextArea description = new JTextArea();
	
	public AbstractDisciplineForm() {
		super();
		JPanel centerPanel =  new JPanel(new BorderLayout());
		
		this.labels.add(new JLabel("Name of Discipline:"));
		this.textFields.add(nameOfDiscipline);

		centerPanel.add(new JLabel("Description:"), BorderLayout.NORTH);
		centerPanel.add(description);
		
		this.center.add(centerPanel);
	}
}
